//package org.zfes.snowier.common.monitor.router.ws;
//import java.io.IOException; 
//import java.util.Date; 
//import java.util.List; 
// 
//import javax.annotation.Resource; 
//import javax.servlet.http.HttpServletRequest; 
//import javax.servlet.http.HttpSession; 
// 
//import org.springframework.beans.factory.annotation.Autowired; 
//import org.springframework.stereotype.Controller; 
//import org.springframework.web.bind.annotation.RequestMapping; 
//import org.springframework.web.bind.annotation.RequestMethod; 
//import org.springframework.web.bind.annotation.ResponseBody; 
//import org.springframework.web.context.request.RequestContextHolder; 
//import org.springframework.web.context.request.ServletRequestAttributes; 
//import org.springframework.web.servlet.ModelAndView; 
//import org.springframework.web.socket.TextMessage;
//import org.zfes.snowier.common.monitor.config.ws.MyWebSocketHandler;
//
//import com.google.gson.GsonBuilder; 
//
//
//@Controller 
//public class GarlicPriceController { 
//  @Resource 
//  MyWebSocketHandler myWebSocketHandler; 
//  
//  
//  @RequestMapping(value = "GarlicPriceController/testWebSocket", method ={RequestMethod.POST,RequestMethod.GET}, produces = "application/json; charset=utf-8") 
//  @ResponseBody 
//  public Object testWebSocket() throws IOException{ 
//    myWebSocketHandler.sendMessageToUser(new TextMessage(new GsonBuilder().create().toJson("\"number\":\""+"GarlicPriceController/testWebSocket"+"\"")), "AAA"); 
//    return ""; 
//  } 
//   
//} 